<template>
  <div>
  <el-card class="box-card">
    <el-form ref="form" :model="form" label-width="80px">
      <el-form-item label="文件名称">
        <el-input v-model="form.name"></el-input>
      </el-form-item>
      <el-form-item label="保存路径">
        <el-select v-model="form.path" placeholder="请选择保存路径">
          <el-option label="磁盘C" value="C"></el-option>
          <el-option label="磁盘D" value="D"></el-option>
          <el-option label="磁盘E" value="E"></el-option>
          <el-option label="磁盘F" value="F"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="保存目录">
        <el-input v-model="form.dir"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">立即创建</el-button>
        <el-button>取消</el-button>
      </el-form-item>
    </el-form>
  </el-card>
  </div>
</template>

<script>
export default {
  name: 'pathCard',
  data(){
    return{
      from:{
        name:'',
        path:"",
        dir:''
      }
    }
  },
  methods:{
    onSubmit(){
      this.$emit("onSubmit");
    }
  }
}
</script>

<style scoped>

</style>
